#! /usr/bin/env node

// console.log('111')
const axios = require('axios');
const paths = "http://fanyi.youdao.com/openapi.do?keyfrom=toaijf&key=868480929&type=data&doctype=json&version=1.1&q="
let args = process.argv[2];


axios.get(paths+encodeURI(args)).then(res=>{
    // console.log(res.data)
    console.log(res.data.translation[0])
})



